package com.qf.aop;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
//测试类
public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext =
                new AnnotationConfigApplicationContext(SpringConfiguration.class);
        ComputerFactory computerFactory = (ComputerFactory)applicationContext.getBean("computerFactory");
        computerFactory.saleComputer();
    }
}
